]> dgit.raspbian.org Git - gnome-shell.git/commit
search: Do not use Cancellable.reset()
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 16 Feb 2026 20:58:25 +0000 (21:58 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Mar 2026 17:31:14 +0000 (18:31 +0100)
commit3f6e13e223b9699adb6f4622c399cf245354ac65
treeb3e00f84af8dbf1a6f68e4687689b1ae89e6d724
parent203290c9026a61c16f209ce910db764846f0505a
search: Do not use Cancellable.reset()

Cancellable reset API is deprecated for long time and it's quite broken.
In fact if a search provider receives a cancelled event may end up
checking if the cancellable has been cancelled, but this may not be true
anymore after a reset.

Use instead new cancellable instances so that once one is used we can
consider the previous one completed and we can forget about it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4080>
(cherry picked from commit cead829503083658e736af5964d1d8eb3c92a6bb)
js/ui/search.js